package com.sample.action;

import javax.servlet.http.HttpSession;

import org.apache.struts2.ServletActionContext;

import com.opensymphony.xwork2.ActionSupport;
/**
 * Action����
 * @author ��ʾ
 *
 */
public class BaseAction extends ActionSupport {
	
   protected HttpSession session;
   protected int page=1;
   protected int size=10;
   protected String uri;

	public HttpSession getSession() {
		return ServletActionContext.getRequest().getSession();
	}
	
	public int getPage() {
		return page;
	}

	public void setPage(int page) {
		this.page = page;
	}

	public int getSize() {
		return size;
	}

	public void setSize(int size) {
		this.size = size;
	}

	public String getUri() {
		this.uri =ServletActionContext.getRequest().getRequestURI();
		return this.uri;
	}

	public void setUri(String uri) {
		this.uri = uri;
	}

}
